export interface ResponseData {
    code: number;
    message: string;
    ok: boolean;
}
export interface skuAttr {
    attrId: number | string;
    valueId: number | string;
}
export interface skuSaleAttr {
    saleAttrId: number | string;
    saleAttrValueId: number | string;
}
// Sku 数据类型
export interface SkuData {
    category3Id: number | string;
    spuId: number | string;
    tmId: number | string;
    skuName: string;
    price: number | string;
    weight: number | string;
    skuDesc: string;
    skuAttrValueList?: skuAttr[];
    skuSaleAttrValueList?: skuSaleAttr[];
    skuDefaultImg: string;
    isSale?: number;
    id?: number;
}
// 获取 sku 接口返回的数据的类型
export interface skuResponseData extends ResponseData {
    data: {
        records: SkuData[];
        total: number;
        size: number;
        current: number;
        orders: any[];
        optimizeCountSql: boolean;
        hitCount: boolean;
        countId: null | string;
        maxLimit: null | number;
        searchCount: boolean;
        pages: number;
    };
}

// 商品详情接口返回的数据类型
export interface skuDetailResponseData extends ResponseData {
    data: SkuData;
}
